package reader;

import java.util.HashMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.xml.bind.DatatypeConverter;

import com.google.protobuf.InvalidProtocolBufferException;
import com.shhic.itsed.mws.deviceintf.RawTagBank;

import rdp_msg.Rdp.rdp_request;

public class test1 {

	public static void main(String[] args) throws InvalidProtocolBufferException {
//		String s = "/192.168.11.180:5084";
//		// 把要匹配的字符串写成正则表达式，然后要提取的字符使用括号括起来
//		// 在这里，我们要提取最后一个数字，正则规则就是“一个数字加上大于等于0个非数字再加上结束符”
//		Pattern pattern = Pattern.compile("(2[0-4]\\d|25[0-5]|[01]\\d\\d|\\d\\d|\\d)\\.(2[0-4]\\d|25[0-5]|[01]\\d\\d|\\d\\d|\\d)\\.(2[0-4]\\d|25[0-5]|[01]\\d\\d|\\d\\d|\\d)\\.(2[0-4]\\d|25[0-5]|[01]\\d\\d|\\d\\d|\\d)");
//		Matcher matcher = pattern.matcher(s);
//		if(matcher.find())
////		System.out.println(matcher.group());
//		String str="080212290A0808011081A8381812121308001000185020A0012A0808011000180020001A040802180122020800";
//		byte[] bytes=DatatypeConverter.parseHexBinary(str);
//		System.out.println(DatatypeConverter.printHexBinary(bytes));
//		 rdp_request r = rdp_request.parseFrom(bytes);
//		 System.out.println(r.getConfig().getStopTrigger().getType());
//		 
//		 RawTagBank b=RawTagBank.RESERVED;
//		 System.out.println("bbb="+b.ordinal());
		 HashMap<String,String> initParams = new HashMap<String,String>();
		 initParams.put("isFilter", "true");
		 System.out.println(new Boolean(initParams.get("isFilter")));
		 
		
	}

}
